//
//  NSString+LM.m
//  舍品
//
//  Created by 楼 眉 on 16/3/21.
//  Copyright © 2016年 楼 眉. All rights reserved.
//

#import "NSString+LM.h"

@implementation NSString (LM)

+ (CGSize)LM_getSizeFromString:(NSString *)string scope:(CGSize)size fontValue:(CGFloat)value
{
    NSDictionary *attri = @{NSFontAttributeName:[UIFont systemFontOfSize:value]};
    CGSize stringSize = [string boundingRectWithSize:size options:NSStringDrawingUsesLineFragmentOrigin attributes:attri context:nil].size;
    return stringSize;
}
@end
